package com.wealth.system.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 省市区
 * @author chan
 */

@Entity
@Table(name="t_ssq")
public class SSQ implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	private Long id;
	private String name;
	private Long pid;
	
	/* -------------------------------- method --------------------------------*/
	
	public SSQ() {
	}
	
	
	public SSQ(Long id, String name, Long pid) {
		this.id = id;
		this.name = name;
		this.pid = pid;
	}


	/* -------------------------------- getter/setter --------------------------------*/
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	
	@Column(name="NAME")
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	@Column(name="PID")
	public Long getPid() {
		return pid;
	}
	public void setPid(Long pid) {
		this.pid = pid;
	}
	
	
}


